/**
 * Created by John on 11/5/2014.
 */
public class Main {
    public static void main(String[] args) throws Exception{
        DoubleLinkedList doubleLinkedList = new DoubleLinkedList();

	    doubleLinkedList.addToEnd(1);
	    doubleLinkedList.addToEnd(2);
	    doubleLinkedList.addToEnd(3);
	    doubleLinkedList.addToEnd(5);
	    doubleLinkedList.addToEnd(6);
	    doubleLinkedList.addToEnd(7);
//	    doubleLinkedList.addToPos(4, 7);
        doubleLinkedList.printList();
//	    doubleLinkedList.printReverse();
//	    doubleLinkedList.deleteFromStart();

	    System.out.println("\n");

//	    doubleLinkedList.deleteFromEnd();
//	    doubleLinkedList.printList();
//	    doubleLinkedList.printReverse();

	    doubleLinkedList.deleteFromPosition(20);
	    doubleLinkedList.printList();
    }
}
